x
private _getNodeCoreAtIndex(index: number, restPath: string, createIfAbsent: boolean): Node {module teapo.files { export class FileTree { private _ul: HTMLUListElement; private _rootNode: Node;​ access: SyncStorageAccess;​ constructor(private _host: HTMLUListElement) { this._ul = getChildUL(this._host); // TODO: do something if ul is null​ this._rootNode = new Node(this._ul); this.access = { update: (byFullPath, timestamp) => this._update, read: (fullPaths) => this._read(fullPaths) }; }​ private _update( byFullPath: storage.PropertiesByFullPath, timestamp: number): void { }​ private _read( fullPaths: string[]): storage.PropertiesByFullPath { var result: storage.PropertiesByFullPath = {};​ for (var path in fullPaths) if (fullPaths.hasOwnProperty(path)) { // TODO: normalize path ? if (path.charAt(0) !== '/') path = '/' + path; var node = this._rootNode.getNode(path, false); if (node) { result } } return result; }​ } class Node { name: string; fullPath: string;​ private _resolvedUL = false; private _ul: HTMLUListElement; private _children: Node[]; private _li: HTMLLIElement;​ constructor( parentPath: string, li: HTMLLIElement); constructor(ul: HTMLUListElement); constructor (arg1, arg2?) {